package com.zjp.mg.service;

import com.zjp.mg.model.Code;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface CodeService extends MongoRepository<Code,Long> {

    Page<Code> findByName(String name,Pageable page);
}
